package com.bkhc.umc.entity;

import com.bkhc.umc.entity.listener.DataEntityListener;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.*;
import java.util.Date;

@Entity
@Data
@Table(name = "tbl_umc_user_product_collection")
@EntityListeners({AuditingEntityListener.class, DataEntityListener.class})
public class UProductCollection {
    private static final long serialVersionUID = 1L;
    /**AccountController
     * id
     */
    @GeneratedValue(strategy = GenerationType.AUTO)
    @Id
    private int id ;

    @Column(name = "productCode")
    private String productCode;

    @Column(name = "userId")
    private String userId;


    @Column(name = "creator",updatable = false)
    private String creator;

    @Column(name = "create_date",updatable = false)
    @CreatedDate
    private Date createDate;

    @Column(name = "updator")
    private String updator;
}
